package com.heima.day10.file;

import java.io.File;

public class File01 {
    public static void main(String[] args) {
        String path="D:\\新建文件夹\\t.txt";
        File file=new File(path);
        String path1="D:\\新建文件夹";
        String path2="t.txt";
        File file1=new File(path1,path2);
        System.out.println(file1);
        File file2=new File("D:\\新建文件夹");
        String path3="t.txt";
        File file3=new File(file2,path3);
        System.out.println(file3);
    }
}
